<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

	// Get a db connection.
	$db = JFactory::getDbo();
	 
	// Create a new query object.
	$query = $db->getQuery(true);
	$uid =  JRequest::getVar('id','');
	// Select all records from the user profile table where key begins with "custom.".
	// Order it by the ordering field.
	$query->select('*');
	$query->from('#__user_profiles');
	$query->where('user_id='.$uid);
	// Reset the query using our newly populated query object.
	$db->setQuery($query);
	$results = $db->loadObjectList();
	foreach($results as $row){
		$hours 		= $row -> hours;
	}
?>
<div class="control-group">
     <label id="jform_hours_hours-lbl" for="jform_hours_hours" class="hasTip" title="Hours of Operation::Hours of Operation">Hours of Operation</label>                                                               
     <div class="controls">
     <textarea name="jform[hours][hours]" id="jform_hours_hours" cols="0" rows="0" style="width: 100%; height:250px;" class="mce_editable"></textarea>
<div id="editor-xtd-buttons" class="btn-toolbar pull-left">

<div class="btn-toolbar">
<a class="modal-button btn" title="Article" class="btn" href="http://marshall-islands/administrator/index.php?option=com_content&amp;view=articles&amp;layout=modal&amp;tmpl=component&amp;991e0fc718cb70761d2fdaf29d132d67=1"onclick="IeCursorFix(); return false;" rel="{handler: 'iframe', size: {x: 800, y: 500}}"><i class="icon-file-add"></i> Article</a>
<a class="modal-button btn" title="Image" class="btn" href="http://marshall-islands/administrator/index.php?option=com_media&amp;view=images&amp;tmpl=component&amp;e_name=jform_hours_hours&amp;asset=com_profiles&amp;author="onclick="IeCursorFix(); return false;" rel="{handler: 'iframe', size: {x: 800, y: 500}}"><i class="icon-picture"></i> Image</a>
<a class="modal-button btn" title="Page Break" class="btn" href="http://marshall-islands/administrator/index.php?option=com_content&amp;view=article&amp;layout=pagebreak&amp;tmpl=component&amp;e_name=jform_hours_hours"onclick="IeCursorFix(); return false;" rel="{handler: 'iframe', size: {x: 500, y: 300}}"><i class="icon-copy"></i> Page Break</a>
<a title="Read More" class="btn" href="http://marshall-islands/administrator/#" onclick="insertReadmore('jform_hours_hours');return false;" rel=""><i class="icon-arrow-down"></i> Read More</a>
</div>
</div>

<div class="toggle-editor btn-toolbar pull-right">
<div class="btn-group"><a class="btn" href="#" onclick="tinyMCE.execCommand('mceToggleEditor', false, 'jform_hours_hours');return false;" title="Toggle editor"><i class="icon-eye"></i> Toggle editor</a></div></div>
<div class="clearfix"></div>
                                </div>
</div>